import request from '@/utils/request'

// 查询用户GPS点位列表
export function listGpspoint(query) {
  return request({
    url: '/eim-core/gpspoint/list',
    method: 'get',
    params: query
  })
}

// 查询用户GPS点位详细
export function getGpspoint(id) {
  return request({
    url: '/eim-core/gpspoint/' + id,
    method: 'get'
  })
}

// 新增用户GPS点位
export function addGpspoint(data) {
  return request({
    url: '/eim-core/gpspoint',
    method: 'post',
    data: data
  })
}

// 修改用户GPS点位
export function updateGpspoint(data) {
  return request({
    url: '/eim-core/gpspoint',
    method: 'put',
    data: data
  })
}

// 删除用户GPS点位
export function delGpspoint(id) {
  return request({
    url: '/eim-core/gpspoint/' + id,
    method: 'delete'
  })
}
